package com.free.bsf.metric.base;

import com.free.bsf.core.util.ContextUtils;
import com.free.bsf.core.util.PropertyUtils;
import com.free.bsf.core.util.StringUtils;
import lombok.val;

import javax.sql.DataSource;
import java.net.InetAddress;

public class Config {
    public static DataSource mysqlDataSource(){
        return (DataSource)ContextUtils.getBean("mysql",false);
    }

    public static DataSource starrocksDataSource(){
        return (DataSource)ContextUtils.getBean("starrocks",false);
    }

    public static Cache LocalCache = new com.free.bsf.metric.base.Cache();
    public static int LocalCacheTime = 1000;
}
